
This resource address returns information on a specific host. The host can be identified either by id or name.
| Request Headers | |
|---|---|
| Accept | The expected MIME type of the response. If the
format parameter is present, it takes precedence over the Accept header. |
For all views except edit, upon success, MarkLogic Server returns
status code 200 (OK), and the response body contains the requested data. If
view=edit, MarkLogic Server responds with status code 302 (Found) and the
Location header contains a redirect to the appropriate page in the Admin Interface.
manage-user role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage
When view=counts, the count information includes the document count, directory
count, active fragment count, deleted fragment count, and nascent fragment count.
The structure of the data in the response for the default view is as follows:
idnamemetaThis is a complex structure with the following children:
uricurrent-timeelapsed-timestart-minview-errorThis is a complex structure with the following children:
error-typeerror-nameerror-codeerror-messagerelationsThis is a complex structure with the following children:
relation-groupThis is a complex structure with the following children:
urireftyperefrolerefrelation-countrelationThis is a complex structure with the following children:
qualifiersThis is a complex structure with the following children:
qualifierThis is a complex structure with the following children:
urireftyperefidrefnamerefurireftyperefrolerefidrefnamerefrelated-viewsThis is a complex structure with the following children:
related-viewThis is a complex structure with the following children:
view-typeview-nameview-uri
http://localhost:8002/manage/v2/hosts/myhost
==> Returns information on the 'myhost' host.
http://localhost:8002/manage/v2/hosts/myhost?format=json
==> Returns information on the 'myhost' host, as JSON.
http://localhost:8002/manage/v2/hosts/myhost?view=edit
==> Returns a redirect to the Admin Interface configuration page
for the 'myhost' host.